package com.easychat.entity.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AppConfig {
    //websocket端口
    @Value("${ws.port:}")
    private Integer wsPort;

    //文件目录
    @Value("${project.folder:}")
    private String projectFolder;

    //超级管理员email，若有多个，则以“,”分开
    @Value("${admin.emails:}")
    private String adminEmails;
    @Value("${server.port}")
    private Integer serverPort;

    public Integer getWsPort() {
        return wsPort;
    }

    public String getProjectFolder() {
        return projectFolder;
    }

    public String getAdminEmails() {
        return adminEmails;
    }

    public Integer getServerPort() {
        return serverPort;
    }
}
